package com.example.kaptcha.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/print")
public class LoggerController {
    private static final Logger logger = LoggerFactory.getLogger(LoggerController.class);
    @RequestMapping("/logger")
    public String pringt() {
        log.debug("我是debug级别的日志");
        log.info("我是info级别的日志");
        log.info("我是error级别的日志");
        log.info("我是fatal级别的日志");
        log.info("我是warn级别的日志");
        return "success";
    }
}
